const {createProxyMiddleware} = require('http-proxy-middleware');

// 代理服务
module.exports = function (app) {
  app.use(
    createProxyMiddleware("/apiaem", {
      target: "https://testjs.org", // 代理的后端地址
      changeOrigin: true,
      pathRewrite: {
        '^/apiaem': ''
      }
    }),
  );
};